package com.spic.business.ioc.service.impl;

import com.spic.business.ioc.domain.ForecastPreModel;
import com.spic.business.ioc.domain.ForecastWindModel;
import com.spic.business.ioc.mapper.ForecastPreMapper;
import com.spic.business.ioc.mapper.ForecastWindMapper;
import com.spic.business.ioc.service.ForecastService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;

/**
 * @author mos
 */
@Service
@DS("ods")
public class ForecastServiceImpl implements ForecastService
{

    @Autowired
    ForecastWindMapper forecastWindMapper;

    @Autowired
    ForecastPreMapper forecastPreMapper;

    @Override
    public void savePre(ForecastPreModel preModel) {
        forecastPreMapper.insert(preModel);
    }

    @Override
    public void saveWind(ForecastWindModel preModel) {
        forecastWindMapper.insert(preModel);
    }

    @Override
    public void deleteWind() {
        forecastWindMapper.deleteWind();
    }

    @Override
    public void deletePre() {
        forecastPreMapper.deletePre();
    }
}
